/*
 * @Author: zi.yang
 * @Date: 2021-10-04 23:36:10
 * @LastEditors: zi.yang
 * @LastEditTime: 2021-10-04 23:55:28
 * @Description: In User Settings Edit
 * @FilePath: \project-management\controllers\sysDict.js
 */

const express = require('express');
const router = express.Router();
const SysDictData = require('../services/SysDictData');

router.get('/findAllDictData',(req,res)=>{
  SysDictData.findAllDictData((data)=>{
    res.status(data.code).json(data)
  })
})

router.get('/findDictDataByDictType',(req,res)=>{
  const { dictType } = req.query;
  SysDictData.findDictDataByDictType(dictType,(data)=>{
    res.status(data.code).json(data)
  })
})


module.exports = router;